Conversation
|
| Section | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | .text |
81.06% | 81.07% | +3 |
| Function | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | zNPCCommon::SysEvent(xBase*, xBase*, unsigned int, const float*, xBase*, int*) |
99.73% | 99.90% | +4 |
main/SB/Core/x/xBehaveMgr
| Section | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | .text |
35.29% | 96.45% | +4452 |
| Function | From | To | Bytes | |
|---|---|---|---|---|
| ✅ | xPsyche::AddGoal(int, void*) |
97.68% | 100.00% | +3 |
| 📈 | xPsyche::IndexInStack(int) const |
63.77% | 85.38% | +22 |
| 📈 | xPsyche::GIDInStack(int) const |
0.00% | 86.11% | +93 |
| ✅ | xPsyche::GetPrevRecovery(int) const |
97.90% | 100.00% | +5 |
| ✅ | xPsyche::GoalSet(int, int) |
0.00% | 100.00% | +296 |
| ✅ | xPsyche::GoalPush(int, int) |
0.00% | 100.00% | +344 |
| ✅ | xPsyche::GoalPopRecover(int) |
0.00% | 100.00% | +240 |
| ✅ | xPsyche::GoalPop(int, int) |
0.00% | 100.00% | +440 |
| ✅ | xPsyche::GoalSwap(int, int) |
0.00% | 100.00% | +272 |
| ✅ | xPsyche::GoalNone(int, int) |
0.00% | 100.00% | +252 |
| ✅ | xPsyche::FindGoal(int) |
0.00% | 100.00% | +208 |
| ✅ | xPsyche::ForceTran(float, void*) |
0.00% | 100.00% | +84 |
| ✅ | xPsyche::Timestep(float, void*) |
0.00% | 100.00% | +512 |
| ✅ | xPsyche::ParseTranRequest(en_trantype, int) |
0.00% | 100.00% | +280 |
| ✅ | xPsyche::TranGoal(float, void*) |
0.00% | 100.00% | +1328 |
| ✅ | xPsyche::ExpTranOn() |
0.00% | 100.00% | +16 |
| ✅ | xPsyche::ExpTranOff() |
0.00% | 100.00% | +16 |
| ✅ | xPsyche::ExpTranIsOn() |
0.00% | 100.00% | +20 |
| ✅ | xPsyche::DBG_HistAdd(int) |
0.00% | 100.00% | +4 |
| ✅ | xGoal::Name() |
0.00% | 100.00% | +8 |
| ✅ | xGoal::GetState() const |
0.00% | 100.00% | +8 |
JoshSanch
requested changes
Jan 21, 2026
src/SB/Core/x/xBehaveMgr.cpp
Outdated
| g_behavmgr->RegBuiltIn(); | ||
| XOrdInit(&psylist, size, 0); | ||
| psypool = (xPsyche*)xMemAlloc(gActiveHeap, size * 0x68, 0); | ||
| memset(psypool, 0, size * 0x68); |
Collaborator
There was a problem hiding this comment.
We should be able to be more descriptive with instances of 0x68:
Suggested change
| memset(psypool, 0, size * 0x68); | |
| memset(psypool, 0, size * sizeof(xPsyche)); |
|
| Section | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | .text |
81.06% | 81.07% | +3 |
| Function | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | zNPCCommon::SysEvent(xBase*, xBase*, unsigned int, const float*, xBase*, int*) |
99.73% | 99.90% | +4 |
main/SB/Core/x/xBehaveMgr
| Section | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | .text |
35.29% | 96.45% | +4452 |
| Function | From | To | Bytes | |
|---|---|---|---|---|
| ✅ | xPsyche::AddGoal(int, void*) |
97.68% | 100.00% | +3 |
| 📈 | xPsyche::IndexInStack(int) const |
63.77% | 85.38% | +22 |
| 📈 | xPsyche::GIDInStack(int) const |
0.00% | 86.11% | +93 |
| ✅ | xPsyche::GetPrevRecovery(int) const |
97.90% | 100.00% | +5 |
| ✅ | xPsyche::GoalSet(int, int) |
0.00% | 100.00% | +296 |
| ✅ | xPsyche::GoalPush(int, int) |
0.00% | 100.00% | +344 |
| ✅ | xPsyche::GoalPopRecover(int) |
0.00% | 100.00% | +240 |
| ✅ | xPsyche::GoalPop(int, int) |
0.00% | 100.00% | +440 |
| ✅ | xPsyche::GoalSwap(int, int) |
0.00% | 100.00% | +272 |
| ✅ | xPsyche::GoalNone(int, int) |
0.00% | 100.00% | +252 |
| ✅ | xPsyche::FindGoal(int) |
0.00% | 100.00% | +208 |
| ✅ | xPsyche::ForceTran(float, void*) |
0.00% | 100.00% | +84 |
| ✅ | xPsyche::Timestep(float, void*) |
0.00% | 100.00% | +512 |
| ✅ | xPsyche::ParseTranRequest(en_trantype, int) |
0.00% | 100.00% | +280 |
| ✅ | xPsyche::TranGoal(float, void*) |
0.00% | 100.00% | +1328 |
| ✅ | xPsyche::ExpTranOn() |
0.00% | 100.00% | +16 |
| ✅ | xPsyche::ExpTranOff() |
0.00% | 100.00% | +16 |
| ✅ | xPsyche::ExpTranIsOn() |
0.00% | 100.00% | +20 |
| ✅ | xPsyche::DBG_HistAdd(int) |
0.00% | 100.00% | +4 |
| ✅ | xGoal::Name() |
0.00% | 100.00% | +8 |
| ✅ | xGoal::GetState() const |
0.00% | 100.00% | +8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Still missing the
xListItem<xGoal>weak functions, and a few functions are giving me issues, but this file is basically 99% done.xPsyche::ForceTran - SquareMan